import request from '@/utils/request'
// 根据商品名称模糊查询
export const getProListByName = (goodsName) => {
  return request.get('/goods/list', {
    params: {
      sortType: 'all',
      goodsName,
      sortPrice: 0,
      categoryId: 0,
      page: 1
    }
  })
}
// 获取商品详情
export const getProduct = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}

// 获取商品保障
export const getProService = (goodsId) => {
  return request.get('/goods.service/list', {
    params: {
      goodsId
    }
  })
}
